package com.ant.boot;

import com.ant.boot.component.ComponentA;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

@SpringBootApplication
public class StartApplication {
    public static void main(String[] args) {
        final SpringApplication springApplication = new SpringApplication(StartApplication.class);
        springApplication.setAllowBeanDefinitionOverriding(true);
        springApplication.setAllowBeanDefinitionOverriding(true);
        final ConfigurableApplicationContext applicationContext = springApplication.run(args);
        applicationContext.getBean(ComponentA.class).hello();
    }
}
